package com.cndongtai.service.torchn;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cndongtai.dao.impl.TorchnUserInfoDao;
import com.cndongtai.po.TorchnUserInfo;

@Service("torchnLoginService")
public class TorchnLoginService {
	
	@Resource(name="torchnUserInfoDao")
	private TorchnUserInfoDao torchnUserInfoDao; 
	
	public boolean addTorchnUserInfo(TorchnUserInfo userInfo) {
		if(torchnUserInfoDao.addTorchnUserInfo(userInfo)>0) {
			return true;
		}
		
		return false;
	}
	
	public TorchnUserInfo queryTorchnUserInfo(String openid) {
		return torchnUserInfoDao.queryTorchnUserInfo(openid);
	}

}
